import http from "@/utils/request"

//// 获取商品
export const getCategory = () => http.get('/category/getCategory')

////删除类目
export let deleteCategory = (category_id) => http.get('/category/delCategory', {
    params: {
        category_id,
    }
})

////增加商品
export const addCategory = (categoryName, categoryImgurl) => http.post('/category/addCategory', {
    categoryName,
    categoryImgurl
})


////增加商品
export const updateCategory = (categoryName, category_id) => http.post('/category/updateCategory', {
    categoryName,
    category_id
})